Skip to content

Change language picker icon - #4503

Merged
Trott merged 25 commits into
nodejs:mainfrom
ArkinSolomon:change-lang-icon
Mar 28, 2022
Merged

Trott merged 25 commits into
nodejs:mainfrom
ArkinSolomon:change-lang-icon

Conversation

@ArkinSolomon

@ArkinSolomon ArkinSolomon commented Mar 18, 2022 •

Copy link
Copy Markdown
Contributor

Fixes #3372. I know this had 2 pull requests created already, with the most recent one dying pretty quickly. It was a pretty simple change to use the new image. I did slightly modify the icon to be white only. It works fine for both light and dark modes.

Screen Shot 2022-03-18 at 1 50 32 PM

icon128px-exported-black

@Trott

Trott commented Mar 19, 2022

Copy link
Copy Markdown
Member

Where did the icon come from originally?

@ArkinSolomon

Copy link
Copy Markdown
Contributor Author

It came from http://www.languageicon.org/, see #3503.

@Trott

Trott commented Mar 22, 2022

Copy link
Copy Markdown
Member

@nodejs/website

@XhmikosR

Copy link
Copy Markdown
Contributor

It shouldn't be a PNG.

@XhmikosR XhmikosR closed this Mar 22, 2022
@XhmikosR

Copy link
Copy Markdown
Contributor

It shouldn't be a PNG.

@XhmikosR XhmikosR reopened this Mar 22, 2022
@XhmikosR
XhmikosR requested review from XhmikosR and removed request for XhmikosR March 22, 2022 04:59

@XhmikosR XhmikosR left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use SVG files after optimizing it and no redundant attributes.

@ArkinSolomon

Copy link
Copy Markdown
Contributor Author

I have changed the icons to an svg by converting it from .eps, and manually added light and dark variants and used css to change them when the theme changes.

@ArkinSolomon
ArkinSolomon requested a review from XhmikosR March 23, 2022 06:30
Comment thread layouts/partials/header.hbs Resolved
Comment thread static/images/lang-picker-icon-dark.svg Resolved
Comment thread static/images/lang-picker-icon-dark.svg Resolved
Comment thread layouts/css/layout/_dark-theme.scss Resolved
Since dark mode transition time is used in multiple places, I added a variable so if it needs to be changed it can be changed easily.
@ArkinSolomon
ArkinSolomon requested a review from XhmikosR March 23, 2022 16:31
Comment thread layouts/partials/header.hbs Resolved
@ArkinSolomon
ArkinSolomon requested a review from XhmikosR March 23, 2022 16:42
Comment thread layouts/partials/header.hbs Resolved
@ArkinSolomon
ArkinSolomon requested a review from osk2 March 24, 2022 06:10

@osk2 osk2 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ArkinSolomon

Copy link
Copy Markdown
Contributor Author

Is this PR good for merging @XhmikosR ?

@XhmikosR

Copy link
Copy Markdown
Contributor

Sorry, I can't review the result (this is one of the cases PR previews would go a long way).

If someone can confirm everything looks good on both themes, that's good enough from my side judging by the code changes.

@Trott

Trott commented Mar 28, 2022

Copy link
Copy Markdown
Member

Sorry, I can't review the result (this is one of the cases PR previews would go a long way).

@XhmikosR If you're online right now, here's a preview I'll keep around for the next 30 minutes or so: https://8080-arkinsolomon-nodejsorg-yges5368tg1.ws-us38.gitpod.io/

@XhmikosR

Copy link
Copy Markdown
Contributor

Thanks @Trott!

Confirmed LGTM. The same optimizations could be made to the dark switcher icons later (inline them, optimize them, toggle the d-none class etc)

@Trott
Trott merged commit 7ee3902 into nodejs:main Mar 28, 2022
@ArkinSolomon
ArkinSolomon deleted the change-lang-icon branch March 28, 2022 16:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Change language-picker icon so it's not the Google Translate icon

5 participants